/*
 *    Copyright (c) 2018-2025, 云集汇通 All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the yunjihuitong.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 */

package com.yjht.modules.sys.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.yjht.common.utils.PageUtils;
import com.yjht.modules.sys.entity.SysUserEntity;
import com.yjht.modules.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 系统用户
 * 
 * @author lengleng
 * @email wangiegie@gmail.com
 * @date 2016年9月18日 上午9:34:11
 */
@Component
public interface SysUserDao extends BaseMapper<SysUserEntity> {
	
	/**
	 * 查询用户的所有权限
	 * @param userId  用户ID
	 */
	List<String> queryAllPerms(Long userId);
	
	/**
	 * 查询用户的所有菜单ID
	 */
	List<Long> queryAllMenuId(Long userId);

	List<SysUserEntity> querySysUserListPage(Page<SysUserEntity> page,Map<String,Object> map);
	List<SysUserEntity> querySysUserListPage1(Page<SysUserEntity> page, @Param("ew") EntityWrapper<SysUserEntity> wrapper);
	//Page<SysUserEntity> querySysUserListPage(Page<SysUserEntity> page,Map<String,Object> map);
}
